<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>maxlength属性</title>
	</head>
	<body>
		<!-- 最多输入3个字符 -->
		<input type="text" maxlength="3" />
	</body>
</html>
